package cn.richard.demo.easyrules.rule;

import org.jeasy.rules.annotation.Action;
import org.jeasy.rules.annotation.Condition;
import org.jeasy.rules.annotation.Rule;

@Rule(name = "Hello World rule", description = "Always say hello world")
public class HelloWorldRule {
    @Condition
    public boolean when() {
        return true;
    }
    @Action
    public void then() throws Exception {
        System.out.println("hello world");
    }
}
